feat: add additive /internal/version endpoint#5
Conversation
🔵 REQUIRES APPROVAL | Risk: 0/100 | 0 breaking changes✅ Decision: PASS • 🟢 Risk: 0/100 • ✅ Breaking: 0 • ✅ Patterns: 0 ✅ CodeRifts — Risk Score: 0/100 (Minimal)🏷️ Suggested version bump: 📌 Current version is v1.4.0 → next version should be v1.5.0 🔬 Decision Audit — Ω_API V3
Pattern config hash:
📊 API Stability Grade: A (minimal risk) 📦 Generator, AI-spec & SDK impact (2)🔧 Generator Impact AnalysisDetected generators:
📦 SDK Surface Impact2 generated SDKs detected in this repository:
Total SDK impact: 0 models and 0 methods across 2 SDKs need regeneration.
📝 API ChangelogAdded
💾 Migration & Impact AssessmentReview estimate: ⚡ ~10 min
⏰ Deprecation Calendar
📏 API Design Lint — 7 warnings, 1 info
⌛ Deprecation LifecycleCurrently deprecated (not removed in this PR):
|
| Schema | Score | Grade | Delta | Top Gap |
|---|---|---|---|---|
| api/openapi.yaml | 90% | 🟢 A (Excellent) | ⬇️ -2 | Examples (31%) |
📋 Raw diff details
path.add— paths./internal/metrics (api/openapi.yaml)path.add— paths./internal/ping (api/openapi.yaml)path.add— paths./internal/version (api/openapi.yaml)path.add— paths./payments/capture (api/openapi.yaml)
🏛️ Governance Health: A (95/100)
📋 Policy
| Rule | Condition | Action | Status |
|---|---|---|---|
| block-endpoint-removal | endpoint_removed | BLOCK | ✅ not triggered |
| warn-high-risk | risk_score >= 80 | WARN | ✅ not triggered |
Effective action: ALLOW
Want to adjust these rules? Simulate the impact on a real change before enabling.
⚠️ Schema Overlap Warning
Other open PRs also modify the same OpenAPI spec files. Merging this PR may cause conflicts or inconsistent changes in:
| PR | Spec File | Status |
|---|---|---|
| #4 — feat!: breaking changes v1.5.0 — remove phone field + narrow order status enum | api/openapi.yaml |
Open (101 days) |
| #2 — feat: migrate payment API to v2 schema | api/openapi.yaml |
Open (120 days) |
| #3 — Update openapi.yaml | api/openapi.yaml |
Open (109 days) |
| #1 — fix: update API schema for v2 migration | api/openapi.yaml |
Open (126 days) |
💡 Tip: Coordinate with these PR authors before merging. Consider rebasing after one PR is merged.
📋 Action Items
- Review all breaking changes above
- Update MCP manifest if agent-facing endpoints changed
- Prepare consumer-facing changelog
- Define rollout plan before merge
📊 API surface: 13 endpoints · 31 fields · 9 schemas
⚙️ Configure in .coderifts.yml · 🔗 CodeRifts
🎋 Fields aligned in peace
🎋 Backward compatible grace
🎋 Deploy without fear
☁️ You're on the Free plan. Pro features (risk scoring, governance, deprecation enforcement) are included during the beta. Lock in Pro pricing →
⏱️ PR Review Insights
This PR
| Metric | Value | Benchmark |
|---|---|---|
| Time to First Review | Awaiting review | — |
| Review Rounds | 0 | 🟢 Normal |
| PR Size | +42 / -0 | 🟢 Small |
🌐 Cross-Repo Impact
This PR affects downstream consumers:
| Consumer Repo | Criticality | Risk |
|---|---|---|
| coderifts/example | 🔴 Critical | No breaking changes detected |
1 downstream repo affected.
💰 Token Cost Guard
Schema changes affect LLM context size for agents consuming this API.
| Metric | Value |
|---|---|
| Estimated token delta | +200 tokens/call |
| Change | +40% |
| Risk level | 🔴 High |
At $0.003/1k tokens: +$0.0006 per agent invocation
🔐 Verdict Core (governance frame)
Decision: ALLOW · Risk: 2/100
Reproducible governance fingerprint: a2c51a4ceb978797…
Standalone governance scorer (budget-frame). Byte-reproducible — recompute anywhere, get the same hash. Bands differ from the diff verdict (documented).
🧠 Neural Hotspot Map
Changed endpoints by criticality:
| Endpoint | Method | Weight | Classification |
|---|---|---|---|
| /payments/capture | POST | 52 | 🟡 Association Cortex |
| /internal/version | GET | 30 | 🔵 Sensory Cortex |
| /internal/metrics | GET | 16 | ⚪ Brainstem |
| /internal/ping | GET | 16 | ⚪ Brainstem |
✅ Pre-merge Checklist
Before merging this PR, verify:
- Rollout plan defined (monitor closely after deploy)
…-cost fix deploy)
… fixed build 84d4d03)
Additive (non-breaking) endpoint added to api/openapi.yaml to live-verify the Verdict Core (governance frame) PR section. Expected: positive token delta (new endpoint = +50), ALLOW / low risk, reproducible governance fingerprint.